package com.bao.work.work05;

import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.json.JsonMapper;

import java.io.File;
import java.io.IOException;

/**
 * @author baoye
 * @date 2024-08-13/19:35
 */
public class Test05 {
    public static void main(String[] args) {
        JsonMapper jsonMapper=new JsonMapper();
        try {
            JsonNode jsonNode = jsonMapper.readTree(new File("day15/src/com/bao/work/work04/books.json"));
            for (JsonNode node : jsonNode) {
                System.out.println(node);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
